package com.iwhalecloud.bss.kite.cucc.client.vo.attr;

import com.iwhalecloud.bss.kite.cucc.client.dto.attr.UnicomRegion;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Classname UnicomRegionTreeVO
 * @Description 区域树
 * @Author zhang.song
 * @Date 2022-02-06 15:56
 */
@Data
@ApiModel(value = "UnicomRegionTreeVO", description = "区域树")
public class UnicomRegionTreeVO {

    @ApiModelProperty(value = "主键")
    private Long regionId;

    @ApiModelProperty(value = "区域编码")
    private String regionCode;

    @ApiModelProperty(value = "区域名称")
    private String regionName;

    @ApiModelProperty(value = "父级区域编码")
    private String parRegionCode;

    @ApiModelProperty(value = "区域级别")
    private Integer regionLevel;

    @ApiModelProperty(value = "状态")
    private String statusCd;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "是否叶子节点")
    private boolean isLeaf;

    @ApiModelProperty(value = "子节点")
    private List<UnicomRegion> subRegionList;

    public UnicomRegionTreeVO() {
    }

    public UnicomRegionTreeVO(UnicomRegion unicomRegion) {
        this.regionId = unicomRegion.getRegionId();
        this.regionCode = unicomRegion.getRegionCode();
        this.regionName = unicomRegion.getRegionName();
        this.parRegionCode = unicomRegion.getParRegionCode();
        this.regionLevel = unicomRegion.getRegionLevel();
        this.statusCd = unicomRegion.getStatusCd();
        this.remark = unicomRegion.getRemark();
        this.isLeaf = unicomRegion.getIsLeaf();
    }
}
